<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="islogin.jsp"%>
<%@ page import="com.ch7.model.UserInfo"%>
<%@ page import="com.ch7.dal.Users"%>

<%
	request.setCharacterEncoding("utf-8");
	Users users = new Users();
	String keyword = request.getParameter("keyword");
	List<UserInfo> list = users.getList();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>后台用户管理页面</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<p>当前位置：用户管理</p>
	
	<table width="98%" border="1">
	<tr>
	<td>用户名</td>
	<td>Email</td>
	<td>身份</td>
	<td>操作</td>
	</tr>
    <%
    for(UserInfo info:list){
     %>
     <tr>
     <td><%=info.getUsername() %></td>
     <td><%=info.getEmail() %></td>
     <td><%=info.getPower() %></td>
     <td><a href="manager/users-edit.jsp?username=<%=info.getUsername() %>&action=edit">编辑</a> | 
     <a href="manager/users-delete.jsp?username=<%=info.getUsername() %>"> 删除</a>|
  
     </td> 
     </tr>
     <%
     }
      %>
	</table>
</body>
</html>
